import { _decorator, Component, Node } from 'cc';
import { AbsAdapter } from '../Common/ListView';
import { GameResultItem } from './GameResultItem';

const { ccclass, property } = _decorator;

@ccclass('GameListAdapter')
export class GameListAdapter extends AbsAdapter {

    updateView(item:Node, posIndex: number) {
        let comp = item.getComponent(GameResultItem)
        if (comp) {
            let data = this.getItem(posIndex);
            comp.setData(data);
        }
    }

}


